/*
 * $Id: AbstractStagedIriData.java,v 1.3 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Tue Jun 16 15:56:50 CDT 2009 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the STAGED_IRI_DATA table. 
 * You can customize the behavior of this class by editing the class, {@link StagedIriData()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractStagedIriData 
    implements Serializable
{
    /**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 6242199096387129161L;

	/** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Integer id;

    /** The value of the simple createdTime property. */
    private java.util.Date createdTime;

    /** The value of the simple gecares property. */
    private java.lang.String gecares;

    /** The value of the simple dataTimestamp property. */
    private java.util.Date dataTimestamp;

    /** The value of the simple channelName property. */
    private java.lang.String channelName;

    /** The value of the simple channelValue property. */
    private java.lang.Double channelValue;

    /** The value of the simple channelEnabled property. */
    private java.lang.String channelEnabled;

    /**
     * Simple constructor of AbstractStagedIriData instances.
     */
    public AbstractStagedIriData()
    {
    }

    /**
     * Constructor of AbstractStagedIriData instances given a simple primary key.
     * @param id
     */
    public AbstractStagedIriData(java.lang.Integer id)
    {
        this.setId(id);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Integer
     */
    public java.lang.Integer getId()
    {
        return id;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param id
     */
    public void setId(java.lang.Integer id)
    {
        this.hashValue = 0;
        this.id = id;
    }

    /**
     * Return the value of the CREATED_TIME column.
     * @return java.util.Date
     */
    public java.util.Date getCreatedTime()
    {
        return this.createdTime;
    }

    /**
     * Set the value of the CREATED_TIME column.
     * @param createdTime
     */
    public void setCreatedTime(java.util.Date createdTime)
    {
        this.createdTime = createdTime;
    }

    /**
     * Return the value of the GECARES column.
     * @return java.lang.String
     */
    public java.lang.String getGecares()
    {
        return this.gecares;
    }

    /**
     * Set the value of the GECARES column.
     * @param gecares
     */
    public void setGecares(java.lang.String gecares)
    {
        this.gecares = gecares;
    }

    /**
     * Return the value of the DATA_TIMESTAMP column.
     * @return java.util.Date
     */
    public java.util.Date getDataTimestamp()
    {
        return this.dataTimestamp;
    }

    /**
     * Set the value of the DATA_TIMESTAMP column.
     * @param dataTimestamp
     */
    public void setDataTimestamp(java.util.Date dataTimestamp)
    {
        this.dataTimestamp = dataTimestamp;
    }

    /**
     * Return the value of the CHANNEL_NAME column.
     * @return java.lang.String
     */
    public java.lang.String getChannelName()
    {
        return this.channelName;
    }

    /**
     * Set the value of the CHANNEL_NAME column.
     * @param channelName
     */
    public void setChannelName(java.lang.String channelName)
    {
        this.channelName = channelName;
    }

    /**
     * Return the value of the CHANNEL_VALUE column.
     * @return java.lang.Double
     */
    public java.lang.Double getChannelValue()
    {
        return this.channelValue;
    }

    /**
     * Set the value of the CHANNEL_VALUE column.
     * @param channelValue
     */
    public void setChannelValue(java.lang.Double channelValue)
    {
        this.channelValue = channelValue;
    }

    /**
     * Return the value of the CHANNEL_ENABLED column.
     * @return java.lang.String
     */
    public java.lang.String getChannelEnabled()
    {
        return this.channelEnabled;
    }

    /**
     * Set the value of the CHANNEL_ENABLED column.
     * @param channelEnabled
     */
    public void setChannelEnabled(java.lang.String channelEnabled)
    {
        this.channelEnabled = channelEnabled;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof StagedIriData))
            return false;
        StagedIriData that = (StagedIriData) rhs;
        if (this.getId() == null || that.getId() == null)
            return false;
        return (this.getId().equals(that.getId()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int idValue = this.getId() == null ? 0 : this.getId().hashCode();
            result = result * 37 + idValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}
